package com.chris.design.pattern.samples.wrapper;

/**
 * 包装或装饰角色
 * @author shangpan
 * @date 10/09/2018
 */
public class Wrapper implements Component {

    private Component component;

    public Wrapper() {
    }

    public Wrapper(Component component) {
        this.component = component;
    }

    @Override
    public void someOperation() {
        // 委派给构件, Component do some operation
        component.someOperation();
    }
}
